package com.tucue.dao;

import com.tucue.model.Faq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FaqMapper {
    int deleteByPrimaryKey(Integer faqid);

    int insert(Faq record);

    int insertSelective(Faq record);

    Faq selectByPrimaryKey(Integer faqid);
    List<Faq> selectAll();

    //<!--更新常见问题-->
    int updateFaq(Faq record);

    int updateByPrimaryKey(Faq record);

    //单个删除常见问题
    int deleteFaq(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除常见问题
    int deleteFaqBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改常见问题状态
    int updateFaqStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}